const Service = require('egg').Service;

class HomeService extends Service {
  async insert(params) {
    // const sql = 'SELECT * FROM banner';
    const res = await this.app.mysql.insert('user', params);
    return res;
  }

  async find(params) {
    const res = await this.app.mysql.get('user', params);
    return res;
  }
}

module.exports = HomeService;
